home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Java Developer's Companion
/
Java Developer's Companion.iso
/
Javacup
/
EDUHM01H.TAR
/
education
/
EDUHM01H
/
addition.t
next >
Wrap
Text File
|
1996-05-21
|
176b
|
13 lines
# This program adds two unary numbers separated by
# a 0 and prints the result one space to the right.
110111
8
0 1 0 >
0 0 1 1
1 1 1 >
1 - 2 <
2 1 3 -
3 - 4 <
4 1 4 <
4 - 5 >